Excel Document Protection Techniques Sample


Office, Excel
Security, Excel Protection, Offie Automation
Desktop
en-US
5/31/2012

 

Note:

This sample runs in Microsoft Office Excel 2007 and higher.

This sample demonstrates various techniques you can use to protect structural components of a worksheet. These techniques can help to prevent users from accidentally deleting controls or otherwise changing important parts of your solution document.

Security Note:

This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.

For information about installing the sample project on your computer, see How to: Install and Use Sample Files Found in Help.

To run this sample

  1. Press F5.

  2. Follow the instructions on Sheet1 and Sheet2.

Demonstrates